<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of UserMessageManager
 *
 * @author ID59C
 */
class UserMessageCenter {

    //put your code here
    public function __construct($userId);
    /* get a list of operations that can create message in message center
     */
   
    /*params:
     * $messages = array();
     * $messages = {'message'=>messageObj,'forwardMessage'=>forwardMessageObj}
     * $destinations = array();
     * $destinations =
     * {'self-messagecenter',
     * 'weibo',
     * 'users'=>array(){user1,user2},
     * 'circles'=>array(){circle1,circle2,...},
     * 'serviceTeams'=>array(){serviceTeam1,serviceTeam2,...}}     
     */
    public function sendMessage($messages,$destination);
    
    /*params:
     * $source = {self-messagecenter,weibo}
     * $target = {users,circles,serviceteams}
     * $operationList = {operations that are allowed to show messages outside}
     */
    public function showMessageToOutside($source,$target,$operationList);
    public function setShowMessageToOutsideOperationList($source,$target,$operationList);

    /*params:
     *$senders={users,circles,serviceteams,myself{weibo,internal-operations}}
     * $destination={weibo,self-messagecenter}
     * operationsList(option)
     * {operations that are used to retrieve messages in
     * allowed operations
     * if not set, retrieve all messages}
     */
    public function retrieveMessages($senders,$destination,$operationList);
    public function setRetrieveMessageOperation($senders,$destination,$operationList);

}

?>
